home *** CD-ROM | disk | FTP | other *** search
/ System Booster / System Booster.iso / Archives / ForCLI / fcmp.readme < prev    next >
Text File  |  1996-09-26  |  2KB  |  47 lines

  1. Short: Quick, non-diff binary file compare
  2.  
  3. Fcmp compares two binary (or ascii) files to the limit of the shorter.
  4. Output can be controlled on the command line; by default, fcmp tells
  5. you the file byte in which the difference occurred, the block number
  6. (relative to 1), and the block's byte offset (relative to 0).  The
  7. latter two are for patching with NewZAP.  Further options will print
  8. hex codes for the differing bytes, and/or print the character itself
  9. (not useful on binary files).
  10.  
  11. Options:
  12. -v:    Print hex codes
  13. -b:    Don't print NewZAP info
  14. -q:    Print only the totals for the scan; no diffs
  15. -qq:    Never print; return non-zero if different
  16. -a:    Print characters that differ
  17.  
  18.  
  19. Why?  An example: I had a program whose menu keyboard equivalents were
  20. lacking; one commonly-used function had no equivalent.  I NewZAPped
  21. the program to locate the MenuItem structure for that menu item, and
  22. modified it to carry a keyboard equiv. that I liked.  Later, I got a
  23. binary patchfile for the program.  If I had patched it, I could have
  24. lost the mod I made.  So I fcmp'ed the file and its original to locate
  25. the changes I had made, recorded context information, patched the
  26. program, and NewZAPped the new file to locate the context and replace
  27. my modification.  There are other uses.  Keep it and you'll think of
  28. one.
  29.  
  30.  
  31. Fcmp is totally free.  I, the author, release it to the public domain,
  32. along with any liability for damages incurred through its use or
  33. misuse.
  34.  
  35. 01-Sep-92
  36. David Champion
  37.  
  38.  
  39. ============================= Archive contents =============================
  40.  
  41. Original  Packed Ratio    Date     Time    Name
  42. -------- ------- ----- --------- --------  -------------
  43.     9352    5643 39.6% 31-Aug-92 11:58:58  fcmp
  44.     5036    1972 60.8% 31-Aug-92 11:58:30  fcmp.c
  45. -------- ------- ----- --------- --------
  46.    14388    7615 47.0% 01-Sep-92 17:55:22   2 files
  47.